home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / ip20t21a.lha / IFX20to21a_Patch / Patches2.lha / Rexx / AutoFX / CineMatte.ifx.pre < prev    next >
Text File  |  1995-04-20  |  1KB  |  51 lines

  1. /*
  2.  * CineMatte.ifx.pre
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * AutoFX script to run the CineMatte hook.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Sequence number
  9.  *    Word(Arg(1),2) = Total number of frames (N)
  10.  *
  11.  * Returns:
  12.  *    0 if successful, non-zero on failure
  13.  *
  14.  */
  15.  
  16. OPTIONS RESULTS
  17.  
  18. base  = 'Autofx_CineMatte_'
  19.  
  20. colors = GETCLIP(base||'Colors')
  21. output = GETCLIP(base||'Output')
  22. drange = GETCLIP(base||'DRange')
  23. darken = GETCLIP(base||'Darken')
  24. lighten = GETCLIP(base||'Lighten')
  25.  
  26. IF colors = '' THEN colors = 0
  27. IF output = '' THEN output = 0
  28. IF drange = '' THEN drange = 0
  29. IF darken = '' THEN darken = 0
  30. IF lighten = '' THEN lighten = 0
  31.  
  32. Gadget.1 = 'CYCLE   130  5 170 14 "Screen Color:"' colors '"Blue/Green"'
  33. Gadget.2 = 'CYCLE   130 20 170 14 "Output:"' output '"Composite Only/Matte & Composite/Matte & Keyed FG"'
  34. Gadget.3 = 'CHECK   130 36  26 11 "Dynamic Range?"' drange
  35. Gadget.4 = 'INTEGER 130 49  50 14 "Darken BG:"' darken
  36. Gadget.5 = 'INTEGER 130 64  50 14 "Lighten FG:"' lighten
  37. Gadget.6 = 'TEXT    190 52   1  1 "(0 - 255)"'
  38. Gadget.7 = 'TEXT    190 67   1  1 "(0 - 255)"'
  39. Gadget.8 = 'END'
  40.  
  41. NewComplexRequest '"CineMatte"' Gadget 330 85
  42. IF rc ~= 0 THEN EXIT rc
  43.  
  44. CALL SETCLIP(base||'Colors', result.1)
  45. CALL SETCLIP(base||'Output', result.2)
  46. CALL SETCLIP(base||'DRange', result.3)
  47. CALL SETCLIP(base||'Darken', result.4)
  48. CALL SETCLIP(base||'Lighten', result.5)
  49.  
  50. EXIT
  51.